package utils

import "runtime"

// GetEvn 获取当前环境
func GetEvn() string {
	if runtime.GOOS == "windows" {
		return "win"
	} else if runtime.GOOS == "linux" {
		return "linux"
	}
	return runtime.GOOS
}

// HasWin 判断是否是windows环境
func HasWin() bool {
	return GetEvn() == "win"
}

// HasLinux 判断是否是linux环境
func HasLinux() bool {
	return GetEvn() == "linux"
}
